import request from '@/utils/request'

// 查询流程记录列表
export function listProcessRecord(query) {
  return request({
    url: '/activiti/processRecord/list',
    method: 'get',
    params: query
  })
}

// 查询流程记录详细
export function getProcessRecord(id) {
  return request({
    url: '/activiti/processRecord/' + id,
    method: 'get'
  })
}

// 新增流程记录
export function addProcessRecord(data) {
  return request({
    url: '/activiti/processRecord',
    method: 'post',
    data: data
  })
}

// 修改流程记录
export function updateProcessRecord(data) {
  return request({
    url: '/activiti/processRecord',
    method: 'put',
    data: data
  })
}

// 删除流程记录
export function delProcessRecord(id) {
  return request({
    url: '/activiti/processRecord/' + id,
    method: 'delete'
  })
}
